package com.hrm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hrm.mapper.DepartMapper;
import com.hrm.pojo.Depart;

@Service
@Transactional
public class DepartService {

	@Autowired
	private DepartMapper departMapper;
	
	public List<Depart> findAll(){
		return departMapper.findAll();
	}
	public Depart findByDepartname(String departname){
		return departMapper.findBydepartEnglishname(departname);
	}
	
}
